import request from '@/config/request.js';

// 获取通知公告列表
export const noticeList = (params) => request.get('/system/notice/list', params)

// 获取通知公告详情信息
export const noticeById = (id) => request.get('/system/postingsManager/' + id)

// 新增通知公告详情信息
export const noticeAdd = (params) => request.post('/system/postingsManager', params)

// 修改通知公告详情信息
export const noticeModify = (params) => request.put('/system/postingsManager', params)

// 删除通知公告详情信息
export const noticeDelete = (id) => request.delete('/system/postingsManager/' + id)
//获取注册用户数量
export const getUserNumbers = () => request.get('/system/user/getNumber')
//获取在线用户数量
export const getOnlinePeopleNumber = () => request.get('/monitor/online/list')
//获取用户详情信息
export const getInfo = () => request.get('/getInfo')
//获取农产品报价列表
export const getReportList = () =>request.get('/system/report/getList')
//获取帖子列表
export const postList = () => request.get('/system/postingsManager/getList')
//添加用户信息
export const addUserList = (params) => request.post('/system/villager',params)
//添加用户信息
export const addThingList = (params) => request.post('/system/pass',params)
//查询统计图数据
export const selectTableData = () =>request.get('/system/pass/selectTableData')

//查询审核数据
export const selectPostList = () =>request.get('/system/pass/getList')

//更新数据
export const updatePost=(params)=>request.put('/system/pass/edit',params)